package com.csu.backmanagesys.Service.impl;

import com.csu.backmanagesys.Domain.IdAndPassword;
import com.csu.backmanagesys.Mapper.IdAndPasswordMapper;
import com.csu.backmanagesys.Service.IdAndPasswordService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IdAndPasswordServiceImpl implements IdAndPasswordService {
    @Resource
    private IdAndPasswordMapper IdAndPasswordMapper;

    @Override
    public List<IdAndPassword> selectIdAndPassword() {
        return IdAndPasswordMapper.selectIdAndPassword();
    }

    @Override
    public IdAndPassword selectIdAndPasswordById(String id){
        return IdAndPasswordMapper.selectIdAndPasswordById(id);
    }

    @Override
    public void updateIdAndPassword(String id, String password) {
        IdAndPasswordMapper.updateIdAndPassword(id, password);
    }
}
